package Eyjafjalla.action;

import Eyjafjalla.patch.MelodyPatch;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.core.Settings;

public class MelodyAction extends AbstractGameAction {
    public MelodyAction(MelodyPatch.MelodySingle single){
        this.sing = single;
        startDuration = duration = Settings.ACTION_DUR_FAST;
    }

    @Override
    public void update() {
        if(duration==startDuration&&sing!=null){
            MelodyPatch.addMelody(sing);
        }
        this.tickDuration();
    }

    MelodyPatch.MelodySingle sing;
}
